{% extends 'base/base.html' %}
{% block title %}

搜索结果

{% endblock %}




{% block main %}
   {% if query %}
        <h3>搜索结果如下：</h3>
        {% for result in page.object_list %}

            <li class="list-group-item">
                <a href="{% url 'main:files_detail' result.object.id %}?back={{ request.get_full_path|urlencode }}">{{ result.object.title }}</a>
                <span class="pull-right text-muted">#{{ result.object.tags_str  }} · {{ result.object.author }} · {{ result.object.create_time|date:'Y-m-d' }}</span>
            </li>
        {% empty %}
            <p>啥也没找到</p>
        {% endfor %}
    {% endif %}

{% endblock %}
